﻿
@model  DataMongo.Entities.UserAcademyInfo
         
@using (Html.BeginForm("UserProfileAcademyInfo", "Profile", FormMethod.Post, new {@class = "form-horizontal"}))
{
    @Html.HiddenFor(x=>x.UserAcademyInfoId)
        <h5 style="text-align: center">
                                            Academy Information
                                            <span style="padding-left: 12px">
                                                <input type="submit" value="save" class="btn btn-blue btn-mini " />
                                            </span>
                                        </h5>

    <div class="control-group">
        <label for="textfield" class="control-label">Country</label>
        <div class="controls">
            @Html.DropDownListFor(x => x.ScCountryId, Model.CountryList, new {@class = "input-medium"})
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">State</label>
        <div class="controls">
            @Html.DropDownListFor(x => x.ScState, Model.StateList, new {@class = "input-medium"})
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">City</label>
        <div class="controls">
            @Html.DropDownListFor(x => x.ScCity, Model.CityList, new {@class = "input-medium"})
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">School Type</label>
        <div class="controls">
            @Html.RadioButtonFor(x => x.ScType, "HighSchool") High School
            @Html.RadioButtonFor(x => x.ScType, "University") college/University
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">School Name</label>
        <div class="controls">
            @Html.TextBoxFor(x => x.ScName, new {@class = "input-medium", @placeholder = "Text input"})
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">Start Date</label>
        <div class="controls">
            <select id="ScStartDate" name="ScStartDate" class="input-medium">
                @foreach (var item in Model.YearList)
                {
                    <option value="@item">@item</option>

                }


            </select>
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">Leave Date</label>
        <div class="controls">
            <select id="ScEndDate" name="ScEndDate" class="input-medium">
                @foreach (var item in Model.YearList.OrderByDescending(x=>x))
                {
                    <option value="@item">@if (item == DateTime.UtcNow.Year)
                                          {
                                              <text>Present</text>
                                          }
                                          else
                                          {
                                              @item
                                          }
                                          </option>

                }


            </select>
        
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">Stauts</label>
        <div class="controls">
            @Html.RadioButtonFor(x => x.Status, "Alumnus") Alumnus
            @Html.RadioButtonFor(x => x.Status, "CurrentStudent") Current Student
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">Degree</label>
        <div class="controls">
            @Html.DropDownListFor(x => x.ScDegreeId, Model.DegreeList, new {@class = "input-medium"})
        </div>
    </div>
    <div class="control-group">
        <label for="textfield" class="control-label">Description</label>
        <div class="controls">
            @Html.TextAreaFor(x => x.Description, new { @class = "input-medium", @placeholder = "Text input" })
        </div>
    </div>
}